package com.zbs.framework.common.base.tree;

import com.zbs.framework.common.base.id.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.persistence.MappedSuperclass;

/**
 * Created by Zbs
 * 2018-12-25
 */
@Getter
@Setter
@MappedSuperclass
@NoArgsConstructor
@AllArgsConstructor
public class TreeNode extends BaseEntity {
    /**
     * 编码
     */
    protected String treeCode;
    /**
     * 父级ID
     */
    protected Long parentId;
    /**
     * 等级
     */
    protected Integer level;
}
